package com.itheima.bianma;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public class Demo01 {

    public static void main(String[] args) throws UnsupportedEncodingException {

        String s="魑魅魍魉";


        byte[] bytes = s.getBytes();
        System.out.println(Arrays.toString(bytes));

        byte[] gbks = s.getBytes("GBK");
        System.out.println(Arrays.toString(gbks));

    }
}
